'Plugin Load Filter' 的搜索结果

'Plugin Load Filter' 的搜索结果


正在查看 4 结果:1-4 (共 4 个结果)
  • 作者
    搜索结果
  • heipao
    参与者
    • 文章数量: 4
    @heipao

    错误如下:

    Fatal error: Uncaught Error: Call to undefined function register_post_meta() in /www/wwwroot/cheaptalk/wp-content/themes/astra/inc/metabox/class-astra-meta-boxes.php:646 Stack trace: #0 /www/wwwroot/cheaptalk/wp-includes/class-wp-hook.php(298): Astra_Meta_Boxes->register_meta_settings(”) #1 /www/wwwroot/cheaptalk/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /www/wwwroot/cheaptalk/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /www/wwwroot/cheaptalk/wp-settings.php(448): do_action(‘init’) #4 /www/wwwroot/cheaptalk/wp-config.php(96): require_once(‘/www/wwwroot/ch…’) #5 /www/wwwroot/cheaptalk/wp-load.php(37): require_once(‘/www/wwwroot/ch…’) #6 /www/wwwroot/cheaptalk/wp-admin/admin.php(31): require_once(‘/www/wwwroot/ch…’) #7 /www/wwwroot/cheaptalk/wp-admin/customize.php(13): require_once(‘/www/wwwroot/ch…’) #8 {main} thrown in /www/wwwroot/cheaptalk/wp-content/themes/astra/inc/metabox/class-astra-meta-boxes.php on line 646

    Geticer
    参与者
    • 文章数量: 63
    @monicfenga

    我是从这个页面过来的,我想推荐一些可以考虑翻译的插件:

    • Login LockDown
    • plugin load filter
    • Simple Maintenance
    • Reading progressbar
    • Flying Pages by WP Speed Matters
    • GD bbPress Tools
    • Maintenance Switch
    • Duplicate Post
    • Redirection
    • AMP

    只是一个小建议而已。

    诗语
    管理员
    • 文章数量: 5,866
    @feibisi

    跨站点的用户头像同步其实是为了让buddypress的用户可以不用老是上传重复的头像,而且对于保持用户数据统一也是很有帮助。以下是特殊情况下如在 WordPress 多站点中需要使用用户头像同步的方法。

    1. 在修改WordPress安装目录中的 config.php 文件,添加 define( ‘BP_ENABLE_MULTIBLOG’, true ) ,来网络启用 buddypress
    2. 进入网站后台,网络管理,插件,选择网络激活 buddypress
    3. 安装一个WordPress的用户头像插件,可以在后台搜索最热门的头像插件使用;
    4. 如果你想完全禁用gravatar,可以安装:https://wordpress.org/plugins/disable-user-gravatar/
    5. 将下方的代码添加到你的主题或者子主题的 function.php 文件里,注意定义 BP_ROOT_BLOG 这里是定义一个站点 ID 如果你的祝要 buddypress 站点是 1 那么就填写为 1,如下。
    
    <?php
    //echo get_current_blog_id();
    
    //echo ABSPATH . “<BR>”;
    //echo get_site_url() . “<BR>”;
    if ( !defined( ‘BP_ROOT_BLOG’ ))
    define( ‘BP_ROOT_BLOG’, 1);
    
    // echo “There is no root blog defined “;
    // echo get_blog_option( 3, ‘siteurl’ ) . “wtf”;
    /* This fixes the Multisite avatar problem */
    function nfm_bp_avtar_upload_path_correct($path){
    if ( bp_core_is_multisite() ){
    $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );
    }
    return $path;
    }
    add_filter(‘bp_core_avatar_upload_path’, ‘nfm_bp_avtar_upload_path_correct’, 1);
    function nfm_bp_avatar_upload_url_correct($url){
    if ( bp_core_is_multisite() ){
    $url = get_blog_option( BP_ROOT_BLOG, ‘siteurl’ ) . “/wp-content/uploads”;
    
    }
    
    return $url;
    }
    add_filter(‘bp_core_avatar_url’, ‘nfm_bp_avatar_upload_url_correct’, 1);
    ?>
    诗语
    管理员
    • 文章数量: 5,866
    @feibisi

    抱歉,由于安全原因,这个文件类型不受支持。

    Sorry, this file type is not permitted for security reasons.

    上传 svg 图片结果出现这种问题,感觉挺烦的。

    把这一段添加到主题的 functions.php 功能文件里面:

    // Add this to the functions.php file of your WordPress theme
    // It filters the mime types using the upload_mimes filter hook
    // Add as many keys/values to the $mimes Array as needed
    
    function my_custom_upload_mimes($mimes = array()) {
    
    	// Add a key and value for the SVG file type
    	$mimes['svg'] = "text/svg";
    
    	return $mimes;
    }
    
    add_action('upload_mimes', 'my_custom_upload_mimes');

    如果要支持其他文件格式的话,就把上面代码中的 svg 改成你需要的就行 比如 cvs 、rar 等

    或者还有就是用插件来实现,后台搜索 safe svg ,然后安装启用即可。下载地址

    Safe SVG

正在查看 4 结果:1-4 (共 4 个结果)

未找到对应子版块?请直接在 [疑难杂症] 版块中发帖提问。

收藏纪念品


有奖活动

参与论坛社区问答,有机会获赠文派瓦普(Wapuu.com)手办模型。